package com.qf.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Farm {
    private int id;
    private String province; //省份
    private String city; //城市
    private String district; //区域
    private String type;//基地类型
    private String name;
    private String linkman;//基地负责人
    private String telephone;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatetime;
    private int userId;
    private String mainCrop; //主要农作物

     private User user;
}
